package com.shenyi.wx.service;

import com.shenyi.wx.api.IApiBrandService;
import com.shenyi.wx.dao.ApiBrandMapper;
import com.shenyi.wx.entity.BrandDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ApiBrandService implements IApiBrandService {
    @Autowired
    private ApiBrandMapper brandDao;


    public BrandDO queryObject(Integer id) {
        return brandDao.queryObject(id);
    }


    public List<BrandDO> queryList(Map<String, Object> map) {
        return brandDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return brandDao.queryTotal(map);
    }


    public void save(BrandDO brand) {
        brandDao.save(brand);
    }


    public void update(BrandDO brand) {
        brandDao.update(brand);
    }


    public void delete(Integer id) {
        brandDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        brandDao.deleteBatch(ids);
    }

}
